home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / hardware / vrserver / vrserver.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-23  |  2.4 KB  |  79 lines

  1. /*      VRSERVER.H
  2.  *
  3.  * Function definitions for VRServer
  4.  *
  5.  * PUBLIC DOMAIN by Petteri Kangaslampi 1994
  6. */
  7.  
  8. #ifndef __VRSERVER_H
  9. #define __VRSERVER_H
  10.  
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16.  
  17. /****************************************************************************\
  18. *
  19. * Function:     void InitVRServer(void (*PreVRFunct)(), void (*VRFunt)());
  20. *
  21. * Description:  Initializes the VRServer and synchronizes it to the screen
  22. *               refresh
  23. *
  24. * Input:        void (*PreVRFunct)()    Pointer to the routine that will be
  25. *                                       called just before the Retrace. This
  26. *                                       routine should not take more time
  27. *                                       than a couple of raster lines and
  28. *                                       should only do things that absolutely
  29. *                                       have to be done before the Retrace,
  30. *                                       eg. set the screen start address.
  31. *               void (*VRFunct)()       Pointer to the routine that will be
  32. *                                       called just after the Retrace has
  33. *                                       started. This can take more time
  34. *                                       than PreVRFunct() and can be used
  35. *                                       for, for example, setting the RGB
  36. *                                       palette etc.
  37. *
  38. \****************************************************************************/
  39.  
  40. void InitVRServer(void (*PreVRFunct)(), void (*VRFunct)());
  41.  
  42.  
  43.  
  44. /****************************************************************************\
  45. *
  46. * Function:     void SyncVRServer(void);
  47. *
  48. * Description:  Synchronizes the VRServer to the screen refresh. Must be
  49. *               called if the display refresh rate changes, eg. if the
  50. *               mode is changed.
  51. *
  52. \****************************************************************************/
  53.  
  54. void SyncVRServer(void);
  55.  
  56.  
  57.  
  58.  
  59. /****************************************************************************\
  60. *
  61. * Function:     void RemoveVRServer(void);
  62. *
  63. * Description:  Uninitializes the VRServer and restores the old Timer
  64. *               interrupt and rate.
  65. *
  66. \****************************************************************************/
  67.  
  68. void RemoveVRServer(void);
  69.  
  70.  
  71.  
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75.  
  76.  
  77.  
  78. #endif
  79.